#ifndef __buzz_h   
    #define __buzz_h
//HAL--------------------
#define F_buzz() P3_7 = ~P3_7
#define F_setBuzz() P3_7 = 1
#define F_clrBuzz() P3_7 = 0 
//Const--------------------
 //  #define D_buzzLastTime 25  //25*4ms(T0) = last 100ms per Buzz
	//D_buzzConvertAdTime > D_buzzLastTime 
	#define D_buzzConvertAdTime 200 //200*4ms(T0) = reuse Pin convert to Ad mode
																	
    #define D_buzzIntervalTime   250 //250*4ms(T0) = Interval 1s between buzzs
//Var----------------------
    #ifdef __buzz_c
        uint8_t data buzzLastTimer ; 
		uint8_t data buzzConvertAdTimer ;
        uint8_t data buzzCounter ; 
        uint8_t data buzzIntervalTimer ;
		bit data bBuzz ;		
    #else
        extern uint8_t data buzzLastTimer ;
		extern uint8_t data buzzConvertAdTimer ;
        extern uint8_t data buzzCounter ;
        extern uint8_t data  buzzIntervalTimer ;
		extern bit data  bBuzz ;
    #endif

//Function----------------------

void Buzz(D_buzzLastTime );
#endif